﻿@model Central.Linq.Mvc.Demo.Models.IndexPageViewModel
@{
    ViewBag.Title = "УРА";
}
<h2>Другая страница</h2>
@if (Model != null) {

    <p>@Html.DisplayFor(x => Model.ClientFilters, new { queryable_action = "index2", queryable_controller="home"})</p>

    <table>
        @Content.TableHeader("Name", "Date", "Age", "Country", "описание", "Gender", "IsMember", "Вес")
        @foreach (Central.Linq.Mvc.Demo.PersonViewModel item in Model.Items) {
            <tr>
                <td>@item.Name
                </td>
                <td>@Html.DisplayFor(x => item.MemberDate)
                </td>
                <td>@item.Age
                </td>
                <td>@item.Country
                </td>
                <td>@item.Description
                </td>
                <td>@item.Gender
                </td>
                <td>@item.IsMember
                </td>
                <td>@item.Weight
                </td>
            </tr>
        }
    </table>
    @Html.PagerForPagedList(Model.Items.PageIndex, Model.Items, "index2")
}